package com.tn;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

import java.io.IOException;

/**
 * @program: TN_AUCY
 * @description: starter
 * @author: xuheng
 * @create: 2021-11-09 10:19
 */
@SpringBootApplication
@ComponentScan({
        "com.tn.*"
})
@EntityScan("com.tn.common.model")
@MapperScan({"com.tn.dao.*","com.tn.dao.external.*","com.tn.mapper"})
@EnableCaching
@EnableAspectJAutoProxy
@EnableAsync
@EnableScheduling
public class AUCYApplication  {
    public static void main(String[] args) throws IOException {
        SpringApplication.run(AUCYApplication.class, args);
    }
}
